package org.gd.hellojavacore.isd;

public class Test18 {

    int iPayment=10;
    static boolean bComplete;

    public static void main(String argv[]){
        Test18 t = new Test18();
        System.out.println(t.checkParam("one"));
        System.out.println(bComplete);
    }

    public int checkParam(String param){
        try{
            if(param.equals("one")) {
                return iPayment * 2;
            } else if (param.equals("two")) {
                return iPayment * 3;
            }
        } finally {
            bComplete=true;
        }

        return -1;
    }
}